<!DOCTYPE html>
<html>
<head>
    <title>新增菜单</title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link href="css/animate.min.css" rel="stylesheet">
    <link rel="shortcut icon" href="favicon.ico">
    <link rel="stylesheet" href="css/metroStyle/metroStyle.css" type="text/css">
    <link href="css/bootstrap.min14ed.css?v=3.3.6" rel="stylesheet">
    <link href="css/font-awesome.min93e3.css?v=4.4.0" rel="stylesheet">
    <link href="css/plugins/morris/morris-0.4.3.min.css" rel="stylesheet">
    <link href="css/style.min862f.css?v=4.1.0" rel="stylesheet">
    <link href="css/plugins/iCheck/custom.css" rel="stylesheet">
    <link rel="stylesheet" href="css/plugins/table/bootstrap-table.css" type="text/css">
    <link href="css/style.winning.css" rel="stylesheet" type="text/css">
    <link href="plat-menu.css?v=1.0.0" rel="stylesheet">
    <link href="fonts/ali-iconfont/iconfont.css" rel="stylesheet" type="text/css">
    <link href="css/lc_switch.css" rel="stylesheet" type="text/css">
    <style>
        .icon {
            width: 2.0em;
            height: 1.5em;
            fill: currentColor;
            overflow: hidden;
        }
    </style>
</head>

<body>
<div id="div7" style="height: 437px;">
    <ul class="nav nav-tabs">
        <li class="active mt5">
            <a id="cdTab" data-toggle="tab" onclick="changeCdxx('cdxx')" href="#tab-cdxx">菜单信息</a>
        </li>
        <li class="mt5">
            <a id="gnTab" data-toggle="tab" style="display:none;" href="#tab-gnan" onclick="changeCdxx('gnan')">
                菜单功能按钮
            </a>
        </li>
        <li class="mt5">
            <a id="qxTab" data-toggle="tab" style="display:none;" href="#tab-qxan" onclick="changeCdxx('qxnn')">
                菜单数据权限
            </a>
        </li>
    </ul>

    <div class="tab-content mt15px mr40px">
        <div class="tab-pane active" id="tab-cdxx">
            <form id='menuForm' class="form-horizontal ml-35px">
                <div class="form-group">
                    <label class="col-sm-2 label-normal-wn">
                        <span class="label-required-wn">*</span>菜单名称
                    </label>

                    <div class="col-sm-4">
                        <input id="mcaption" maxlength="32" name="mcaption" type="text" class="form-control">
                    </div>

                    <label class="col-sm-2 label-normal-wn">
                        <span class="label-required-wn">*</span>上级菜单
                    </label>

                    <div class="col-sm-4">
                        <input id="sjcd" name="sjcd" type="text" class="form-control"
                               readonly="readonly" onclick="openParent()">
                        <input id="pcode" name="pcode" type="hidden" class="form-control">
                        <input id="applicationid" name="applicationid" type="hidden"
                               class="form-control">
                        <input id="mcode" name="mcode" type="hidden" class="form-control">
                    </div>

                </div>

                <div class="form-group">
                    <label class="col-sm-2 label-normal-wn">
                        <span class="label-required-wn">*</span>加载方式
                    </label>
                    <div class="col-sm-4">
                        <select id="jzfs" name="jzfs" class="form-control" onchange="changeJzfs()">
                            <option value="">--请选择--</option>
                            <option value="0">系统加载模块</option>
                            <option value="1">带参URL</option>
                            <option value="2">不带参URL</option>
                            <option value="3">票据认证</option>
                            <option value="4">兼容模式</option>
                        </select>
                    </div>
                    <label class="col-sm-2 label-normal-wn">
                        <span class="label-required-wn">*</span>打开方式
                    </label>
                    <div class="col-sm-4">
                        <select id="dkfs" name="dkfs" class="form-control">
                            <option value="">--请选择--</option>
                            <option value="1">打开空标签页</option>
                            <option value="7">当前标签页打开</option>
                            <option value="8">打开本地程序</option>
                            <option value="9">指定浏览器打开</option>
                        </select>
                    </div>

                </div>

                <div class="form-group">
                    <label class="col-sm-2 label-normal-wn ">菜单类别</label>
                    <div class="col-sm-4">
                        <select id="menutype" name="menutype" class="form-control">
                            <option value="">--请选择--</option>
                            <option value="目录">目录</option>
                            <option value="程序">程序</option>
                            <option value="网页">网页</option>
                            <option value="报表">报表</option>
                        </select>
                    </div>
                    <label class="col-sm-2 label-normal-wn ">菜单类型</label>
                    <div class="col-sm-4">
                        <select id="ftype" name="ftype" class="form-control">
                            <option value="">--请选择--</option>
                            <option value="0">主界面</option>
                            <option value="1">正常功能</option>
                            <option value="2">登记窗口</option>
                            <option value="3">工作列表</option>
                            <option value="4">分组菜单</option>
                            <option value="9999">快捷菜单(右上)</option>
                        </select>
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-sm-2 label-normal-wn ">业务代码</label>

                    <div class="col-sm-4">
                        <input id="fcode" maxlength="50" name="fcode" type="text" class="form-control">
                    </div>

                    <label class="col-sm-2 label-normal-wn "><span>图标路径</span></label>

                    <div class="col-sm-4">
                        <input id="icon" name="icon" maxlength="100" type="text" class="form-control">
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-sm-2 label-normal-wn "><span>链接地址</span></label>

                    <div class="col-sm-4">
                        <input id="module" name="module" maxlength="1000" type="text" class="form-control">
                    </div>

                    <label class="col-sm-2 label-normal-wn ">入口函数</label>

                    <div class="col-sm-4">
                        <input id="entry" maxlength="125" name="entry" type="text" class="form-control">
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-sm-2 label-normal-wn "><span>系统架构</span></label>

                    <div class="col-sm-4">
                        <div style="margin-top: 8px;">
                            <div class="col-sm-6">
                                <input type="radio" name="ssxt" value="2"/>
                                <label class="label-normal-wn" style="vertical-align: middle;margin-top: -8px;"><span>B/S</span></label>
                            </div>
                            <div class="col-sm-6">
                                <input type="radio" name="ssxt" value="1" style="margin-left: 40px;"/>
                                <label class="label-normal-wn" style="vertical-align: middle;margin-top: -8px;"><span>C/S</span></label>
                            </div>
                        </div>
                    </div>

                    <label class="col-sm-2 label-normal-wn "><span>本地程序路径</span></label>

                    <div class="col-sm-4">
                        <input id="bdlj" name="bdlj" maxlength="200" type="text" class="form-control">
                    </div>
                </div>

                <div class="form-group">
                    <label class="col-sm-2 label-normal-wn">大图标</label>

                    <div class="col-sm-4">
                        <input type="file" name="largrimageFile" id="largrimageFile"
                               onchange="uploadImg('#largrimageFile','LARGE_TB')" class="display-none">
                        <input type="text" id="largrimageFile_mc" name="large_tbmc" class="form-control">
                        <button type="button" class="btn borderRadius" onclick="import_inputFile('#largrimageFile')">浏览
                        </button>
                    </div>

                    <label class="col-sm-2 label-normal-wn ">小图标</label>

                    <div class="col-sm-4">
                        <input type="file" name="smallimageFile" id="smallimageFile"
                               onchange="uploadImg('#smallimageFile','SMALL_TB')" class="display-none">
                        <input type="text" id="smallimageFile_mc" name="small_tbmc" class="form-control">
                        <button type="button" class="btn borderRadius" onclick="import_inputFile('#smallimageFile')">浏览
                        </button>
                    </div>
                </div>
                <div class="form-group">
                    <label id="labSftyyh" class="col-sm-2 label-normal-wn" style="display: none;">
                        是否统一用户
                    </label>
                    <div class="col-sm-4" id="divSftyyh" style="display: none;">
                        <select id="sftyyh" name="sftyyh" class="form-control">
                            <option value="">--请选择--</option>
                            <option value="1">是</option>
                            <option value="0">否</option>
                        </select>
                    </div>
                    <label class="col-sm-2 label-normal-wn">
                        菜单状态
                    </label>
                    <div class="col-sm-4">
                        <input id="active" type="checkbox" name="active" class="lcs_check lcs_tt1" checked="checked"
                               autocomplete="on"/>
                    </div>
                </div>
            </form>
        </div>
        <div class="tab-pane" id="tab-gnan">
            <div class="row">
                <div id="div8" class="col-sm-7">
                    <table id="tb1" class="table"></table>
                </div>
                <div class="col-sm-5 pr20">
                    <form id="gnanForm" class="form-horizontal">

                        <input type="hidden" id="lsh" name="lsh"><!--流水号-->
                        <input type="hidden" id="sjcddm" name="sjcddm"><!--流水号-->

                        <div class="form-group">
                            <label class="col-sm-5 label-normal-wn">
                                <span class="label-required-wn">*</span>功能/按钮名称
                            </label>
                            <div class="col-sm-7">
                                <input id="gnmc" name="gnmc" maxlength="20" type="text" class="form-control">
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-5 label-normal-wn">
                                <span class="label-required-wn">*</span>功能/按钮代码
                            </label>
                            <div class="col-sm-7">
                                <input id="gndm" name="gndm" maxlength="30" type="text" class="form-control">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-5 label-normal-wn">描述</label>
                            <div class="col-sm-7">
                                <input id="ms" name="ms" maxlength="100" type="text" class="form-control">
                            </div>
                        </div>
                        <div class="mt5px">
                            <button class="btn btn-normal-wn floatRight" type="button" onclick="cleanData()">
                                清空
                            </button>
                        </div>
                    </form>
                </div>
            </div>
        </div>
        <div class="tab-pane" id="tab-qxan">

            <div class="row">
                <div id="div9" class="col-sm-7 ">
                    <table id="tb2" class="table"></table>
                </div>

                <div class="col-sm-5 pr20">
                    <form id="qxanForm" class="form-horizontal">

                        <input type="hidden" id="sjlsh" name="sjlsh"><!--流水号-->
                        <input type="hidden" id="sjsjcddm" name="sjsjcddm"><!--流水号-->

                        <div class="form-group">
                            <label class="col-sm-5 label-normal-wn">
                                <span class="label-required-wn">*</span>数据权限名称
                            </label>
                            <div class="col-sm-7">
                                <input id="sjmc" name="sjmc" maxlength="25" type="text" class="form-control">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-5 label-normal-wn">
                                <span class="label-required-wn">*</span>数据权限代码
                            </label>
                            <div class="col-sm-7">
                                <input id="sjdm" name="sjdm" maxlength="30" type="text" class="form-control">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-5 label-normal-wn">描述</label>
                            <div class="col-sm-7">
                                <input id="sjms" name="sjms" maxlength="100" type="text" class="form-control">
                            </div>
                        </div>
                        <div class="mt5px">
                            <button class="btn btn-normal-wn floatRight " type="button"
                                    onclick="cleanData_qx()">清空
                            </button>
                        </div>
                    </form>
                </div>
            </div>

        </div>
    </div>
</div>

<div class="col-sm-12 textAlignCenter" id="divMenu">
    <div class="hr-line-dashed" style="margin: 0 0 15px 0;"></div>
    <button class="btn btn-primary-wn borderRadius" type="button" onclick="saveMenu()">保存</button>
    <button class="btn btn-normal-qx" type="button" onclick="cancel()">取消</button>
</div>

<div class="col-sm-12  textAlignCenter displaynone" id="divGnan">
    <div class="hr-line-dashed" style="margin: 0 0 15px 0;"></div>
    <button class="btn btn-primary-wn borderRadius" type="button" onclick="updateGnanList()">保存</button>
    <button class="btn btn-normal-qx" type="button" onclick="cancel()">取消</button>
</div>

<div class="col-sm-12  textAlignCenter displaynone" id="divQxan">
    <div class="hr-line-dashed" style="margin: 0 0 15px 0;"></div>
    <button class="btn btn-primary-wn borderRadius" type="button" onclick="updateQxanList()">保存</button>
    <button class="btn btn-normal-qx" type="button" onclick="cancel()">取消</button>
</div>

<script type="text/javascript" src="js/jquery.min.js?v=3.5.1"></script>
<script type="text/javascript" src="js/bootstrap.min.js?v=3.3.6"></script>
<script type="text/javascript" src="js/plugins/layer/laydate/laydate.js"></script>
<script type="text/javascript" src="js/plugins/layer/layer.min.js"></script>
<script type="text/javascript" src="platcommon/layer-wn.js?v=1.0.0"></script>
<script type="text/javascript" src="platcommon/common.js"></script>
<script type="text/javascript" src="platcommon/json-form.js"></script>
<script type="text/javascript" src="js/plugins/iCheck/icheck.min.js"></script>
<script type="text/javascript" src="plat-menu-add.js"></script>
<script type="text/javascript" src="js/plugins/layer/layer.min.js"></script>
<script type="text/javascript" src="js/plugins/table/bootstrap-table.js"></script>
<script type="text/javascript" src="js/plugins/table/locale/bootstrap-table-zh-CN.js?v=0.0.0"></script>
<script type="text/javascript" src="fonts/ali-iconfont/iconfont.js"></script>
<script type="text/javascript" src="js/lc_switch.js"></script>

</body>
</html>


